<?php

class Materials_Table_Material2Category extends Workset_Db_Table {

    protected $_name = 't_material2category';

    protected $_primary = array('material_id', 'category_id');

    protected $_referenceMap = array(
        'material' => array(
            'columns' 		=> 'material_id',
            'refTableClass' => 'Materials_Table_Material',
            'refColumns' 	=> 'id'
        ),
        'category' => array(
            'columns' 		=> 'category_id',
            'refTableClass' => 'Materials_Table_Category',
            'refColumns' 	=> 'id'
        ),
    );

}
